package me.sunpeng.design.adapter.classadpater;

/**
 *
 * @author sp
 * 适配器类
 */
public class VoltageAdapter  extends Voltage220 implements IVoltage5V{
    /**
     *
     * 将适配器类方法转化为客户端想要的接口
     * @return int
     */
    @Override
    public int output5V() {

        int srcV = output220V();
        int dstV = srcV /44;
        return dstV;
    }
}
